package cn.janescott.framework.core.exception;

/**
 * 自定义异常枚举
 *
 * @author scott
 * @date 2019-02-12
 */
public enum MyExceptionEnums {
    /**
     * 参数不正确
     */
    ILLEGAL_ARGUMENT("参数不正确", ""),

    /**
     * 未知异常
     */
    UNKNOWN_EXCEPTION("未知异常", "");

    private String message;

    private String code;

    MyExceptionEnums(String message, String code) {
        this.message = message;
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public String getCode() {
        return code;
    }
}
